package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WindowFrameBetween implements WindowFrameExtent {

    private int beginIndex;
    private int endIndex;
    private WindowFrameBound windowFrameBound1;
    private WindowFrameBound windowFrameBound2;

    public WindowFrameBetween(int beginIndex,
                              WindowFrameBound windowFrameBound1,
                              WindowFrameBound windowFrameBound2) {
        this.beginIndex = beginIndex;
        this.endIndex = windowFrameBound2.getEndIndex();
        this.windowFrameBound1 = windowFrameBound1;
        this.windowFrameBound2 = windowFrameBound2;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public WindowFrameBound getWindowFrameBound1() {
        return windowFrameBound1;
    }

    public WindowFrameBound getWindowFrameBound2() {
        return windowFrameBound2;
    }

}
